package org.tailor
/**
 * The Regions entity.
 *
 * @author    
 *
 *
 */
class Regions {
    static mapping = {
         table 'regions'
         // version is set to false, because this isn't available by default for legacy databases
         version false
         id generator:'identity', column:'id'
    }
    Long id
    String description
    String regionName
    String url

    static constraints = {
        id(max: 9223372036854775807L)
        description(size: 0..255)
        regionName(size: 1..255, blank: false)
        url(size: 0..255)
    }
    String toString() {
        return "${regionName}" 
    }
}